package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : qiushaoshan
 * @create 2024/6/18 13:49
 */
@Data
@ToString
@TableName("center_org")
@NoArgsConstructor
public class OrgBean extends Model<OrgBean> implements Serializable {

    @TableId(value = "id")
    @ApiModelProperty(name = "id", notes = "主键ID")
    private String id;

    @TableField(value = "pid")
    @ApiModelProperty(name = "pid", notes = "父节点")
    private String pid;

    @TableField(value = "name")
    @ApiModelProperty(name = "name", notes = "名称")
    private String name;

    @TableField(value = "org_code")
    @ApiModelProperty(name = "orgCode", notes = "组织编码")
    private String orgCode;

    @TableField(value = "org_desc")
    @ApiModelProperty(name = "orgDesc", notes = "描述")
    private String orgDesc;

    @ApiModelProperty(name = "ifEngDepartment", notes = "是否工程部")
    private String ifEngDepartment;
    
    @TableField(value = "org_id_path")
    @ApiModelProperty(name = "orgIdPath", notes = "组织ID路径")
    private String orgIdPath;
    
    @TableField(value = "org_path")
    @ApiModelProperty(name = "orgPath", notes = "路径")
    private String orgPath;

    @TableField(value = "org_order")
    @ApiModelProperty(name = "orgOrder", notes = "顺序")
    private Integer orgOrder;

    @TableField(value = "is_available")
    @ApiModelProperty(name = "isAvailable", notes = "是否启用")
    private String isAvailable;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createTime", notes = "创建时间")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updateTime", notes = "修改时间")
    private Date updateTime;

    @TableField(value = "short_name")
    @ApiModelProperty(name = "shortName", notes = "简称")
    private String shortName;

    @TableField(value = "source")
    @ApiModelProperty(name = "source", notes = "数据来源")
    private String source;

}
